package com.leonzhangxf.ioc.event.publication;

import org.springframework.context.ApplicationListener;

/**
 * A hello world event listener.
 *
 * @author leonzhangxf
 */
@HelloWorldListener
public class HelloWorldEventListener implements ApplicationListener<HelloWorldEvent> {

    @Override
    public void onApplicationEvent(HelloWorldEvent event) {
        System.out.println(String.format("Proper HelloWorldEvent: from proper implement of ApplicationListener %s.",
            event.getMessage()));
    }
}
